<template>
	<view class="page-fade-in" :style="{opacity: pageOpc}">
		<template v-if="pageOpc">
			<view class="content">
				<u-parse :content="info"/>
			</view>
		</template>
	</view>
</template>

<script>
	import uParse from '@/components/gaoyia-parse/parse.vue';
	export default {
		components: {
			uParse
		},
		data() {
			return {
				pageOpc:0,
				id:"",
				info:""
			};
		},
		onReady(){
			setTimeout(() => {
				this.pageOpc=1
			}, 100)
		},
		onLoad(ops) {
			this.id=ops.id
			this.getData();
		},
		methods:{
			// 店铺详情
			getData(){
				this.$request.post(this.$api.operateDetails, {
					id:this.id
				}, {
					token:true
				}).then(res => {
					console.log(res)
					if (res.code==1) {
						let {
							data = {}
						} = res;
						this.info=data.content
						let pages = getCurrentPages(); //当前页
						let beforePage = pages[pages.length - 2]; //上个页面
						beforePage.$vm.freshList()
					}
				})
			},
		}
	}
</script>

<style lang="scss">
	.content{
		padding: 28upx;
	}
</style>
